<template>
  <div class="home-card">
    <div class="home-card-top">
      <div class="title">
        {{ title }}
      </div>
      <div class="action">
        <slot name="action"></slot>
      </div>
    </div>
    <div class="home-card-content">
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: "HomeCard",
  props: {
    title: String
  },
  data() {
    return {};
  },
  created() {},
  methods: {}
};
</script>
<style lang="scss">
.home-card {
  overflow: hidden;
  border-radius: 10px;
  background-color: #1e2031;
  .home-card-top {
    width: 100%;
    height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 14px;
    padding: 0 30px;
    .title {
      font-size: 18px;
      color: #fff;
    }
  }
  .home-card-content {
    padding: 0 30px 30px;
  }
}
</style>
